#ifndef PhoneOwnerFactory_H
#define PhoneOwnerFactory_H

#include <string>
#include "PhoneOwner.h"
#include "ImplSPO.h"		
#include "ImplMPO.h"		

using namespace std;

class PhoneOwnerFactory {
public:
	static PhoneOwnerImpl* CreatePhoneOwner(Subject* s, const string& Impl, string phNumber, double cost ) {
		PhoneOwnerImpl* ptrPhoneOwner = 0;
  		if (Impl == "Stationary")   
			ptrPhoneOwner = new ImplSPO( s, phNumber, cost );
  		if (Impl == "Mobile") 
			ptrPhoneOwner = new ImplMPO( s, phNumber, cost );
		return ptrPhoneOwner;
	};
private:
	~PhoneOwnerFactory();
	PhoneOwnerFactory();
};

#endif
